import request from '@/utils/request'
// 收货地址列表
export function addresslist(query) {
    return request({
        url: 'mobile/crCustomerConsignee/list' ,
        method: 'get',
        params: query
    })
}
// 收货地址新增
export function addressedit(query) {
  return request({
      url: 'mobile/crCustomerConsignee/addAndEdit' ,
      method: 'get',
      params: query
  })
}
//收货地址删除
export function  addressdel(query) {
  return request({
      url: 'mobile/crCustomerConsignee/delete' ,
      method: 'get',
      params: query
  })
}
// 分润列表
export function  mymoney(query) {
  return request({
      url: 'mobile/crCustomer/assets' ,
      method: 'get',
      params: query
  })
}
// 提现信息
export function  mytixian(query) {
  return request({
      url: 'mobile/crCustomer/goMoney' ,
      method: 'post',
      data: query
  })
}
// 提现操作
export function  tixianta(query) {
  return request({
      url: 'mobile/crCustomer/applyTHCash' ,
      method: 'post',
      data: query
  })
}
// 我的优惠劵列表
export function  mydiscountCoupons(query) {
  return request({
      url: 'mobile/coupons/myList' ,
      method: 'get',
      params: query
  })
}
// updateuserinfo 个人信息
export function  updateuserinfo(query) {
  return request({
      url:'mobile/crCustomer/nicknamebyOpenId',
      method: 'post',
      data: query
  })
}
// getuserinfo 个人信息
export function  getuserinfo(query) {
  return request({
      url:'mobile/relation/list',
      method: 'post',
      data: query
  })
}
// ordOrder/upToken 上传图片
export function  upToken(query) {
  return request({
      url:'mobile/ordOrder/upToken',
      method: 'get',
      params: query
  })
}